package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.LocationPickAdapter;
import com.kelvin.paopao.api.responseBean.LocationPickModel;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.market.market.locationpick.LocationPickActivity;
import com.kelvin.paopao.module.market.market.locationpick.LocationPickPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/25.
 */

@Module
public class LocationPickModule {
    private LocationPickActivity mView;

    public LocationPickModule(LocationPickActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public LocationPickPresenter providePresenter() {
        return new LocationPickPresenter(mView);
    }

    @PerActivity
    @Provides
    public LocationPickAdapter provideAdapter() {
        return new LocationPickAdapter(mView);
    }
}
